from rest_framework import serializers
from .models import SportRecord, WeightRecord, DietRecord

class SportRecordSerializer(serializers.ModelSerializer):
    class Meta:
        model = SportRecord
        fields = '__all__'
        read_only_fields = ['user']

class WeightRecordSerializer(serializers.ModelSerializer):
    class Meta:
        model = WeightRecord
        fields = '__all__'
        read_only_fields = ['user']

class DietRecordSerializer(serializers.ModelSerializer):
    class Meta:
        model = DietRecord
        fields = '__all__'
        read_only_fields = ['user']